package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.LogisticDetailHistoryMapper;
import com.ruoyi.order.domain.LogisticDetailHistory;
import com.ruoyi.order.service.ILogisticDetailHistoryService;

/**
 * 历史物流信息管理Service业务层处理
 * 
 * @author lzp
 * @date 2025-02-10
 */
@Service
public class LogisticDetailHistoryServiceImpl implements ILogisticDetailHistoryService 
{
    @Autowired
    private LogisticDetailHistoryMapper logisticDetailHistoryMapper;

    /**
     * 查询历史物流信息管理
     * 
     * @param logisticId 历史物流信息管理主键
     * @return 历史物流信息管理
     */
    @Override
    public LogisticDetailHistory selectLogisticDetailHistoryByLogisticId(Long logisticId)
    {
        return logisticDetailHistoryMapper.selectLogisticDetailHistoryByLogisticId(logisticId);
    }

    @Override
    public List<LogisticDetailHistory> selectLogisticDetailHistoryByDeliveryOrderNo(String deliveryOrderNo)
    {
        return logisticDetailHistoryMapper.selectLogisticDetailHistoryByDeliveryOrderNo(deliveryOrderNo);
    }

    /**
     * 查询历史物流信息管理列表
     * 
     * @param logisticDetailHistory 历史物流信息管理
     * @return 历史物流信息管理
     */
    @Override
    public List<LogisticDetailHistory> selectLogisticDetailHistoryList(LogisticDetailHistory logisticDetailHistory)
    {
        return logisticDetailHistoryMapper.selectLogisticDetailHistoryList(logisticDetailHistory);
    }

    /**
     * 新增历史物流信息管理
     * 
     * @param logisticDetailHistory 历史物流信息管理
     * @return 结果
     */
    @Override
    public int insertLogisticDetailHistory(LogisticDetailHistory logisticDetailHistory)
    {
        return logisticDetailHistoryMapper.insertLogisticDetailHistory(logisticDetailHistory);
    }

    /**
     * 修改历史物流信息管理
     * 
     * @param logisticDetailHistory 历史物流信息管理
     * @return 结果
     */
    @Override
    public int updateLogisticDetailHistory(LogisticDetailHistory logisticDetailHistory)
    {
        return logisticDetailHistoryMapper.updateLogisticDetailHistory(logisticDetailHistory);
    }

    /**
     * 批量删除历史物流信息管理
     * 
     * @param logisticIds 需要删除的历史物流信息管理主键
     * @return 结果
     */
    @Override
    public int deleteLogisticDetailHistoryByLogisticIds(Long[] logisticIds)
    {
        return logisticDetailHistoryMapper.deleteLogisticDetailHistoryByLogisticIds(logisticIds);
    }

    /**
     * 删除历史物流信息管理信息
     * 
     * @param logisticId 历史物流信息管理主键
     * @return 结果
     */
    @Override
    public int deleteLogisticDetailHistoryByLogisticId(Long logisticId)
    {
        return logisticDetailHistoryMapper.deleteLogisticDetailHistoryByLogisticId(logisticId);
    }
}
